package com.nondo.dean.auth.provider;

import com.nondo.dean.auth.provider.impl.DeanPlatformClientFallbackFactory;
import com.nondo.dean.common.web.View;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Map;

/**
 * project：dean-cloud
 *
 * @author linfeng @ nondo
 * @date 2018/6/30
 */
@FeignClient(value = "${dean.platform.server:dean-platform}", fallbackFactory = DeanPlatformClientFallbackFactory.class)
public interface DeanPlatformClient {

    /**
     * 绑定接单员
     *
     * @param params
     * @return
     */
    @RequestMapping("/platform/v1/inner/user/update/taker")
    View<Integer> updateOrderTakeUser(@RequestBody Map<String, String> params);

}
